package xyz.hubery.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Collections;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.util.CollectionUtils;
import xyz.hubery.mapper.UserAuthInfoMapper;
import xyz.hubery.domain.UserAuthInfo;
import xyz.hubery.service.UserAuthInfoService;
@Service
public class UserAuthInfoServiceImpl extends ServiceImpl<UserAuthInfoMapper, UserAuthInfo> implements UserAuthInfoService{


    @Override
    public List<UserAuthInfo> findByUserId(Long id) {
        List<UserAuthInfo> infos = this.list(new LambdaQueryWrapper<UserAuthInfo>().eq(UserAuthInfo::getUserId,id));
        return infos == null ? Collections.emptyList() : infos;
    }
}
